echo "$(pwd)"
cd lp_solve
echo "$(pwd)"
chmod +x ./ccc
./ccc
cd ../lpsolve55
echo "$(pwd)"
chmod +x ./ccc
./ccc
cd ..
echo "$(pwd)"

if [ ! -d /usr/local/include/lp_solve/ ];then
    mkdir /usr/local/include/lp_solve
fi
echo "$(pwd)"
cp ./*.h /usr/local/include/lp_solve
cp ./*/*.h /usr/local/include/lp_solve
cp ./*/*/*.h /usr/local/include/lp_solve
cp ./*/*/*/*.h /usr/local/include/lp_solve
cp ./lpsolve55/bin/ux64/* /usr/local/lib
echo "lp_solve has been installed!"
